package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zms
 * @email 1129136596@qq.com
 * @date 2021-02-18 21:16:06
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();


    void removeMenuByIds(List<Long> asList);
/*
* 找到catelogId的完整路径：
* 父子孙
* */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

